package com.jxtc.enterprise.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "新增公司 DTO")
@Getter
@Setter
@ToString
public class CompanyCreateDTO {
    @NotBlank(message = "公司名称不能为空")
    @Schema(description = "公司名称", example = "云启智能技术公司")
    private String name;

    @NotBlank(message = "HR 名称不能为空")
    @Schema(description = "HR 名称不能为空", example = "张三")
    private String hrName;

    @Size(message = "手机号必须为 11 位", min = 11, max = 11)
    @Schema(description = "HR 手机号", example = "12345678901")
    private String phoneNumber;
}
